package com.nf.teamwork.mall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: LJP
 * @Classname ProductInf
 * @Date: 2020-02-27 08:12
 * @Description: 商品信息表实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("商品信息表实体类(ProductInf)")
public class ProductInf {
    @ApiModelProperty("商品信息表ID(productInfId)")
    /*商品信息表ID*/
    private Integer productInfId;
    @ApiModelProperty("品牌信息表ID(brandInfId)")
    /*品牌信息表ID*/
    private Integer brandInfId;
    @ApiModelProperty("上级商品分类ID(superiorCategoryId)：当前商品分类的父分类ID")
    /*上级商品分类ID（当前商品分类的父分类ID）*/
    private Integer superiorCategoryId;
    @ApiModelProperty("当前商品分类ID(currentCategoryId)")
    /*当前商品分类ID*/
    private Integer currentCategoryId;
    @ApiModelProperty("商品名称(productInfName)")
    /*商品名称*/
    private String productInfName;
    @ApiModelProperty("商品价格(originalPrice)")
    /*商品价格*/
    private BigDecimal originalPrice;
    @ApiModelProperty("商品实际售价(sellingPrice)")
    /*商品实际售价*/
    private BigDecimal sellingPrice;
    @ApiModelProperty("商品销量(productInfSales)")
    /*商品销量*/
    private Integer productInfSales;
    @ApiModelProperty("商品库存(productInfStockpile)")
    /*商品库存*/
    private Integer productInfStockpile;
    @ApiModelProperty("商品标签(productInfLabel)")
    /*商品标签*/
    private String productInfLabel;
    @ApiModelProperty("商品描述(productInfDescript)")
    /*商品描述*/
    private String productInfDescript;
    @ApiModelProperty("上下架状态(putawaySoldStatus)：0下架，1上架")
    /*上下架状态：0下架，1上架*/
    private Byte putawaySoldStatus;
    @ApiModelProperty("录入时间(inputTime)")
    /*录入时间*/
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date inputTime;
    /*扩展字段，图片url*/
    @ApiModelProperty("扩展字段，图片url(picUrl)")
    private String picUrl;
}
